<?php 
define('DB_USER', 'root');
define('DB_PASSWORD', 'xc');
define('DB_HOST', 'localhost');
define('DB_NAME', 'content');
$dbc=@mysql_connect(DB_HOST,DB_USER,DB_PASSWORD) or die('could not connect to MySQL : '.mysql_errno());
@mysql_select_db(DB_NAME) or die('could not select the database : '.mysql_errno());

function escape_data($data){
	if(ini_get('magic_quotes_gpc')){
		$data=stripslashes($data);
	}
	if(function_exists('mysql_real_escape_string')){
		global $dbc;
		$data=mysql_real_escape_string(trim($data),$dbc);
	}else{
		$data=mysql_escape_string(trim($data));
	}
	return $data;
}

?>